package by.ostrovsky.webhousingsystem.junit;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import by.ostrovsky.webhousingsystem.crypt.SHACrypt;
import by.ostrovsky.webhousingsystem.exception.OperationErrorException;
import junit.framework.TestCase;

public class GetEncryptedTextTest extends TestCase{
	private final String TO_HASH = "password";

	@Before
	public void setUp(){
	}
	
	@After
	public void tearDown(){
	}
	
	@Test
	public void test(){
		try {
			System.out.println(SHACrypt.getInstance().encrypt(TO_HASH));
		} catch (OperationErrorException e) {
			//Nullpointer
		}
	}
}
